-- GENERATED SPELL FOR [Dragonflayer Vrykul] --


function spell0_23652(pUnit, Event) --@Chop,n/a--
pUnit:FullCastSpellOnTarget(43410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23652', 5341, 1)
end

function spell1_23652(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38557,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23652', 1500, 1)
end

function Sorts_23652(pUnit, Event)
local choix_sorts_23652 = math.random(0, 1)
if choix_sorts_23652 == 0 then
pUnit:RegisterEvent('spell0_23652', 1, 1)
end
if choix_sorts_23652 == 1 then
pUnit:RegisterEvent('spell1_23652', 1, 1)
end
end

function mob23652_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23652', math.random(1500, 3000), 1)
end

function mob23652_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23652_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23652_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23652, 1, 'mob23652_Action')
RegisterUnitEvent(23652, 2, 'mob23652_Leave')
RegisterUnitEvent(23652, 3, 'mob23652_Kill')
RegisterUnitEvent(23652, 4, 'mob23652_Die')
